//
//  GridViewController.m
//  VirtualViewDemo
//
//  Copyright (c) 2017-2018 Alibaba. All rights reserved.
//

#import "GridViewController.h"
#import <VirtualView/VVTemplateManager.h>

@implementation GridViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    if (![[VVTemplateManager sharedManager].loadedTypes containsObject:@"GridItem"]) {
        NSString *path = [[NSBundle mainBundle] pathForResource:@"GridItem" ofType:@"out"];
        [[VVTemplateManager sharedManager] loadTemplateFile:path forType:nil];
    }
    // YQBGrid
    if (![[VVTemplateManager sharedManager].loadedTypes containsObject:@"YQBGrid"]) {
        NSString *path = [[NSBundle mainBundle] pathForResource:@"YQBGrid" ofType:@"out"];
        [[VVTemplateManager sharedManager] loadTemplateFile:path forType:nil];
    }
}

- (NSDictionary *)params
{
    return @{
        @"type" : @"Grid",
        @"data" : @[
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"团购",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/7/5/1tg1530757525157.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"抢券",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/8/14/61534239479526.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"加息",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/7/5/3jx1530757437156.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"积分",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/7/5/4jf1530757396656.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"签到",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"签到",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
                    },
                @{
                    @"type" : @"YQBGrid",
                    @"text": @"签到",
                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
                    },
//                @{
//                    @"type" : @"YQBGrid",
//                    @"text": @"签到",
//                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
//                    },
//                @{
//                    @"type" : @"YQBGrid",
//                    @"text": @"签到",
//                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
//                    },
//                @{
//                    @"type" : @"YQBGrid",
//                    @"text": @"签到",
//                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
//                    },
//                @{
//                    @"type" : @"YQBGrid",
//                    @"text": @"签到",
//                    @"imageSrc":@"https://ms.1qianbao.com/v6/images/2018/10/17/jing1539764362684.png"
//                    }
        ]
    };
}

@end
